#pragma once

#include "QuestionWindow.h"

#include "Core\QuestionAndAnswer.h"
#include "afxwin.h"
// CQnAWindow dialog

class CQnAWindow : public CQuestionWindow
{
    DECLARE_DYNAMIC(CQnAWindow)

public:
    CQnAWindow(CWnd* pParent = NULL);   // standard constructor
    virtual ~CQnAWindow();

// Dialog Data
    enum { IDD = IDD_QnAQuestion };

protected:
    ExamSystem::CQNAAnswer m_answer;
    ExamSystem::CQNAQuestion m_question;

    CEdit m_editAnswer;
    CStatic m_staticTitle;
    CButton m_btnSave;

protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

    DECLARE_MESSAGE_MAP()
    virtual void OnOK();
    virtual void OnCancel();
public:
    virtual BOOL OnInitDialog();
    virtual void ShowQuestion(void);
    virtual void SaveAndHide(void);
    virtual void Initialize(void);
    afx_msg void OnBnClickedButtonsave();
    afx_msg void OnEnChangeEditanswer();
};
